home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
076-100
/
disk_076
/
include
/
devices
/
audio.g
next >
Wrap
Text File
|
1992-05-06
|
1KB
|
46 lines
/* requires previous inclusion of include:exec/io.g */
*char AUDIONAME = "audio.device";
uint ADHARD_CHANNELS = 4;
int
ADALLOC_MINPREC = -128,
ADALLOC_MAXPREC = +127;
uint
ADCMD_FREE = CMD_NONSTD + 0,
ADCMD_SETPREC = CMD_NONSTD + 1,
ADCMD_FINISH = CMD_NONSTD + 2,
ADCMD_PERVOL = CMD_NONSTD + 3,
ADCMD_LOCK = CMD_NONSTD + 4,
ADCMD_WAITCYCLE = CMD_NONSTD + 5,
ADCMDB_NOUNIT = 5,
ADCMDF_NOUNIT = 1 << ADCMDB_NOUNIT,
ADCMD_ALLOCATE = ADCMDF_NOUNIT + 0,
ADIOB_PERVOL = 4,
ADIOF_PERVOL = 1 << ADIOB_PERVOL,
ADIOB_SYNCCYCLE = 5,
ADIOF_SYNCCYCLE = 1 << ADIOB_SYNCCYCLE,
ADIOB_NOWAIT = 6,
ADIOF_NOWAIT = 1 << ADIOB_NOWAIT,
ADIOB_WRITEMESSAGE = 7,
ADIOF_WRITEMESSAGE = 1 << ADIOB_WRITEMESSAGE;
int
ADIOERR_NOALLOCATION = -10,
ADIOERR_ALLOCFAILED = -11,
ADIOERR_CHANNELSTOLEN = -12;
type
IOAudio_t = struct {
IORequest_t ioa_Request;
int ioa_AllocKey;
*byte ioa_Data;
ulong ioa_Length;
uint ioa_Period;
uint ioa_Volume;
uint ioa_Cycles;
Message_t ioa_WriteMsg;
};